package com.ruoyi.board.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.board.mapper.StockBoardIndustryIndexThsMapper;
import com.ruoyi.board.domain.StockBoardIndustryIndexThs;
import com.ruoyi.board.service.IStockBoardIndustryIndexThsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 同花顺-指数Service业务层处理
 * 
 * @author leng.xz
 * @date 2024-05-17
 */
@Service
public class StockBoardIndustryIndexThsServiceImpl implements IStockBoardIndustryIndexThsService 
{
    @Autowired
    private StockBoardIndustryIndexThsMapper stockBoardIndustryIndexThsMapper;

    /**
     * 查询同花顺-指数
     * 
     * @param id 同花顺-指数ID
     * @return 同花顺-指数
     */
    @Override
    public StockBoardIndustryIndexThs selectStockBoardIndustryIndexThsById(Long id)
    {
        return stockBoardIndustryIndexThsMapper.selectStockBoardIndustryIndexThsById(id);
    }

    /**
     * 查询同花顺-指数列表
     * 
     * @param stockBoardIndustryIndexThs 同花顺-指数
     * @return 同花顺-指数
     */
    @Override
    public List<StockBoardIndustryIndexThs> selectStockBoardIndustryIndexThsList(StockBoardIndustryIndexThs stockBoardIndustryIndexThs)
    {
        return stockBoardIndustryIndexThsMapper.selectStockBoardIndustryIndexThsList(stockBoardIndustryIndexThs);
    }

    /**
     * 新增同花顺-指数
     * 
     * @param stockBoardIndustryIndexThs 同花顺-指数
     * @return 结果
     */
    @Override
    public int insertStockBoardIndustryIndexThs(StockBoardIndustryIndexThs stockBoardIndustryIndexThs)
    {
        return stockBoardIndustryIndexThsMapper.insertStockBoardIndustryIndexThs(stockBoardIndustryIndexThs);
    }

    /**
     * 修改同花顺-指数
     * 
     * @param stockBoardIndustryIndexThs 同花顺-指数
     * @return 结果
     */
    @Override
    public int updateStockBoardIndustryIndexThs(StockBoardIndustryIndexThs stockBoardIndustryIndexThs)
    {
        return stockBoardIndustryIndexThsMapper.updateStockBoardIndustryIndexThs(stockBoardIndustryIndexThs);
    }

    /**
     * 删除同花顺-指数对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteStockBoardIndustryIndexThsByIds(String ids)
    {
        return stockBoardIndustryIndexThsMapper.deleteStockBoardIndustryIndexThsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除同花顺-指数信息
     * 
     * @param id 同花顺-指数ID
     * @return 结果
     */
    @Override
    public int deleteStockBoardIndustryIndexThsById(Long id)
    {
        return stockBoardIndustryIndexThsMapper.deleteStockBoardIndustryIndexThsById(id);
    }
}
